package com.cangshi.service;

import com.cangshi.dao.TaskPositionMapper;
import com.cangshi.entity.TaskPosition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by 15c on 2017/4/10.
 */
@Service("TaskPositionBean")
public class TaskPositionServiceImpl implements TaskPositionService {

    @Autowired
    TaskPositionMapper taskPositionMapper;

    public int insertXandY(TaskPosition taskPosition) {
        return taskPositionMapper.insertSelective(taskPosition);
    }

    /**
     * 删除任务位置
     * @param ttaskTaskId id
     * @return
     */
    @Override
    public int delete(Integer ttaskTaskId) {
        return taskPositionMapper.deleteByPrimaryKey(ttaskTaskId);
    }

}
